package com.example.spider.provider.why10w.deprecated.wgwhy10;

import com.example.spider.provider.why10w.deprecated.wgwhy10.task.Wgwhy10ListTask;
import com.example.spider.starter.SpiderStarter;
import com.example.spider.task.SpiderTaskQueue;

/**
 * @author lym
 */
//@Component
public class Wgwhy10SpiderStarter implements SpiderStarter {

    @Override
    public void startSpiders() {
        for (Wgwhy10CategoryEnum w : Wgwhy10CategoryEnum.values()) {
            Wgwhy10ListTask listTask = Wgwhy10ListTaskFactory.createPageTask(w.name(), 1);
            SpiderTaskQueue.putTask(listTask);
        }
    }

}
